from hashlib import md5
from tqdm import tqdm
import re
from multiprocessing import Process

n_proc = 4

match = re.compile(b".*'or'[1-9].*", re.I)

f = 10006460000000
t = 100000000000000

def find(s):
    for i in s:
        m = md5()
        m.update(str(i).encode())
        if re.fullmatch(match, m.digest()):
            print(i)

p_list = []
for i in range(n_proc):
    p = Process(target=find, args=(range(f+i, t, n_proc),))
    p.start()
    p_list.append(p)

[p.join() for p in p_list]
